package co.fitstart.weapp.api.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import co.fitstart.entity.principal.Principal;

/**
 * 
 * @author Administrator
 *
 */
public interface CoachScheduleService {

    /**
     * 
     * @param day
     * @return
     */
    public Map<String, Object> getTimeBanner(Date day);

    /**
     * 获取教练工作时间
     * @param coach
     * @return
     */
    public List<List<String>> listBusinessTime(Principal coach, Date day);

    /**
     * 获取教练班表
     * @param coach
     * @param day
     * @return
     */
    public Map<String, Object> list(Principal coach, Date day);

    /**
     * 获取教练工作时间是否可添加/删除休息
     * @param coach
     * @param day
     * @param type add:添加休息;delete:删除休息
     * @return
     */
    public List<List<Map<String, Object>>> listBusinessTimes(Principal coach, Date day, String type);

    /**
     * 添加/删除休息
     * @param coach
     * @param day
     * @param times
     */
    public void rest(Principal coach, String type, Date day, List<String> times);

    /**
     * 
     * @param coach
     * @param day
     */
    public void reset(Principal coach, Date day);

    /**
     * 
     * @param coach
     * @param day
     */
    public void copy(Principal coach, Date day);
}
